package builder;

import builder.abstract_builder.ComputerBuilder;
import builder.director.ComputerAssembleDirector;
import builder.products.Computer;
import builder.utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
        ComputerBuilder computerBuilder = (ComputerBuilder) XMLUtil.getBean();
        ComputerAssembleDirector computerAssembleDirector = new ComputerAssembleDirector(computerBuilder);
        Computer computer = computerAssembleDirector.assemble();
        System.out.println(computer);
    }
}
